<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="common.jsp"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml">
	<HEAD>
		<TITLE>登录</TITLE>
		<LINK href="css/login.css" type=text/css rel=stylesheet>

		<script type="text/javascript">
	function reloadcode(obj, base) {
		var rand = new Date().getTime(); //这里用当前时间作为参数加到url中，是为了使URL发生变化，这样验证码才会动态加载，  
		//只是一个干扰作用，无确实意义
		obj.src = base + "ImageCheck.action?abc=" + rand; //其实服务器端是没有abc的字段的。  
	}
</script>
	<base href="<%=basePath%>">
		<BODY>
			<s:form action="emp/logon.action" theme="simple">
				<DIV id=login_content>
					<DIV>
						用户ID：&nbsp;
						<INPUT class=inputgri name=username><font color="red">${msg2 }</font>
						<SPAN id=aa></SPAN>
					</DIV>
					<DIV>
						密&nbsp;&nbsp;&nbsp;&nbsp;码：&nbsp;
						<INPUT class=inputgri type=password name=password>
						<SPAN id=bb></SPAN>
					</DIV>
					<DIV>
						验证码：&nbsp;
						<input type="text" name="code" size="5" />
						<img title="看不清楚" src="<%=basePath%>ImageCheck.action"
							id="safecode" onclick="reloadcode(this,'<%=basePath%>')"
							width="70px" height="22px" alt="验证码" /><font color="red">${msg1 }</font>
					</DIV>
					<DIV id=login_line4>
						<INPUT class=button type=submit value="提交 »">
					</DIV>
				</DIV>
			</s:form>
		</BODY>
</HTML>
